﻿using PHMEE.Entities.DaqInfo.TdDevices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace PHMEE.IRepositories.DaqInfo.TdDevices
{
    /// <summary>
    /// 子表仓储
    /// </summary>
    public interface ITdDeviceInstanceRepository : IRepository<TdDeviceInstance, Guid>
    {
        /// <summary>
        /// 根据超级表ID获取子表
        /// </summary>
        /// <param name="superTableId"></param>
        /// <returns></returns>
        Task<List<TdDeviceInstance>> GetAttributesBySuperTableIdAsync(Guid superTableId);
        /// <summary>
        /// 根据传入id查询子表
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<List<TdDeviceInstance>> GetAttributesByIdAsync(List<Guid> ids);
    }
}
